package com.hrpmar.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by c on 2017-11-14.
 */
public interface PermissionMapper {

    /**
     * 根据部门编号获取对应的菜单编号
     * @return
     */
    public List<Integer> getMenuIdByDeId(Integer deId);
    /*
    * 查询一级菜单
    * */
    public Integer deleteByRoleId(Integer roleId);

    public Integer add(@Param("roleId") Integer roleId, @Param("menuId") Integer menuId);
}
